<div class="row">
    <div class="col-xs-12">
        <div class="panel panel-midnightblue">
            <div class="panel-body">
                <form action="" class="form-horizontal row-fluid"  data-validate="parsley" id="validate-form">
                	<div class="row">
                		 <div class="form-group">
                    		<label class="col-sm-3 control-label" >姓名:</label>
                    		<div class="col-sm-6">
                    			<input type="text"  disabled class="form-control" value="{$model.name}"/>
                    		</div>
                   		 </div>
                	</div>
                	
                	<div class="row">
                		 <div class="form-group">
                    		<label class="col-sm-3 control-label" >手机:</label>
                    		<div class="col-sm-6">
                    			<input type="text"  disabled class="form-control" value="{$model.mobile}"/>
                    		</div>
                   		 </div>
                	</div>
                	
                	<div class="row">
                		 <div class="form-group">
                    		<label class="col-sm-3 control-label" >卡号:</label>
                    		<div class="col-sm-6">
                    			<input type="text" name="card_no"  class="form-control" required="required" data-minlength="10" data-maxlength="10" id="card_no"/>
                    		</div>
                   		 </div>
                	</div>
                	
                	<div class="form-group p-b-xxs">
                		<label class="col-sm-3 control-label"  >选择卡种:</label>
                		<div class="col-sm-6">
		                    <select class="select2-single" name="gym_card_id" id="gym_card_id"  style="width: 100%;">
		                      <option value="0" data-type="0">----选择卡种----</option>
		                      {foreach name="cards" item="card"}
		                      		<option value="{$card.id}" data-card-name="{$card.card_name}" data-price="{$card.price}"  data-type="{$card.card_type}" data-able-money="{$card.able_money}" data-able-count="{$card.able_count}"  data-time-sets="{$card.time_sets}" data-able-day="{$card.expiry_date}">{$card.card_name}</option>
		                      {/foreach}
							</select>
						</div>
					</div>
					
					<div class="row" id="able_day_div" style="display: none;">
                		 <div class="form-group">
                    		<label class="col-sm-3 control-label" >总天数:</label>
                    		<div class="col-sm-6">
                    			<input type="text"  id="able_day" name="able_day" readonly  class="form-control" value="0"/>
                    		</div>
                   		 </div>
                	</div>
                	
                	<div class="row" id="able_count_div" style="display: none;">
                		 <div class="form-group">
                    		<label class="col-sm-3 control-label" >总次数:</label>
                    		<div class="col-sm-6">
                    			<input type="text"  id="able_count" readonly name="able_count" class="form-control" value="0"/>
                    		</div>
                   		 </div>
                	</div>
                	
                	<div class="row" id="able_money_div" style="display: none;">
                		 <div class="form-group">
                    		<label class="col-sm-3 control-label" >可用金额:</label>
                    		<div class="col-sm-6">
                    			<input type="text" name="able_money"  id="able_money" readonly class="form-control" value="0"/>
                    		</div>
                   		 </div>
                	</div>
                	
                	<div class="row" id="price_div" >
                		 <div class="form-group">
                    		<label class="col-sm-3 control-label" >合同金额:</label>
                    		<div class="col-sm-6">
                    			<input type="text"  id="price" name="price" readonly class="form-control" value="0"/>
                    		</div>
                   		 </div>
                	</div>
                	
                	<div class="row" >
                		 <div class="form-group">
                    		<label class="col-sm-3 control-label" >支付方式:</label>
                    		<div class="col-sm-6">
                    			<?php $pay_types=config("pay_type");  ?>
                    			<select class="form-control" id="pay_type" name="pay_type">
                    				{foreach name="pay_types" item="v"}
                    					<option value="{$v}">{$v}</option>
                    				{/foreach}
                    			</select>
                    		</div>
                   		 </div>
                	</div>
                	
					<input type="hidden" value="{$model.member_ship_id}" name="member_ship_id" />
                	
                	<div class="form-group p-b-xxs">
                		<label class="col-sm-3 control-label"  >合同来源:</label>
                		<div class="col-sm-6">
                			<?php $come_froms=config("come_from");  ?>
		                    <select class="select2-single" name="come_from"  style="width: 100%;">
		                      		{foreach name="come_froms" item="v"}
		                      		<option value="{$v}">{$v}</option>
		                      		{/foreach}
							</select>
						</div>
					</div>
					
					<div class="row"  >
                		 <div class="form-group">
                    		<label class="col-sm-3 control-label" >签约日期:</label>
                    		<div class="col-sm-6">
                    			<input type="text"  value="<?php echo date('Y-m-d')?>"  id="order_date" name="order_date" class="form-control datepicker" />
                    		</div>
                   		 </div>
                	</div>
                	
                	<div class="form-group p-b-xxs">
                		<label class="col-sm-3 control-label"  >开卡方式:</label>
                		<div class="col-sm-6">
		                    <select class="select2-single" name="activate_type" id="activate_type" style="width: 100%;">
		                      		<option value="1">立即开卡</option>
                    				<option value="2">延迟开卡</option>
							</select>
						</div>
					</div>
                	
                	<div class="row" id="activate_date_div" style="display: none;">
                		 <div class="form-group">
                    		<label class="col-sm-3 control-label" >激活日期:</label>
                    		<div class="col-sm-6">
                    			<input type="text"  id="activate_date" value="<?php echo date('Y-m-d',strtotime('+1 day')); ?>"  name="activate_date" class="form-control"/>
                    		</div>
                   		 </div>
                	</div>
                	
                	<div class="form-group p-b-xxs">
                		<label class="col-sm-3 control-label"  >赠送礼品:</label>
                		<div class="col-sm-6">
		                    <select class="select2-single" name="gift"  style="width: 100%;">
		                    	<option value="无">无</option>
		                      {foreach name="gifts" item="v"}
		                      		<option value="{$v.name}">{$v.name}</option>
		                      {/foreach}
							</select>
						</div>
					</div>
                	
                	<div class="row">
                		<!-- parsley.min.js -->
                		 <div class="form-group">
                    		<label class="col-sm-3 control-label" >描述:</label>
                    		<div class="col-sm-6">
                    			<textarea  placeholder="描述" rows="3"   class="form-control" name="descs" id="descs"></textarea>
                    		</div>
                   		 </div>
                	</div>

					<div class="form-group">
						<label class="col-sm-3 control-label" >入场验证:</label>
						<div class="col-sm-5">
							<select class="form-control" name="in_varifycation"  id="in_varifycation" >
								<option value="0" >不验证</option>
								<option value="1" >需验证</option>
							</select>
						</div>
					</div>

					<div class="form-group" id="in_varifycation_type_div">
						<label class="col-sm-3 control-label" >验证类型:</label>
						<div class="col-sm-5">
							<select class="form-control" name="in_varifycation_type" id="in_varifycation_type">
								{$machines}
								<option value="3" >前台验证</option>
							</select>
						</div>
						<div class="col-sm-3"  id="camare_div">
							<div class="col-sm-5">
								<div class="btn-danger btn btn_face_camare" data-step="1">采集人脸</div>
							</div>
							<div class="col-sm-2">

							</div>
							<div class="col-sm-5">
								<div class="btn-primary btn btn_face_camare" data-step="2">结束采集</div>
							</div>

							<!--<div class="col-sm-5" style="margin-top: 10px;">-->
								<!--<div class="btn-primary btn btn_interface_url" >接口图像</div>-->
							<!--</div>-->
						</div>
					</div>


					<div class="form-group" id="finger_div">
						<div class="col-sm-7 col-sm-offset-3">
							<div class="alert alert-dismissable alert-danger" hidden="hidden">
								<strong>1.您已经绑定了指纹，再次录入指纹 提交后 将会覆盖之前的指纹</strong>
								<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
							</div>
						</div>
						<div class="col-sm-4 col-sm-offset-2">
							<div  class="col-sm-8 col-sm-offset-3" style="height: 150px;background-color:oldlace">
								<img id="finger_image1" style="height: 150px;width: 100%;" src="/data/finger/a8.jpg" />
							</div>
							<div class="col-sm-8 col-sm-offset-3 btn btn-lg btn-danger btn_fingerprint" data-step="1">录入指纹</div>
						</div>
						<div class="col-sm-4">
							<div class="col-sm-8 col-sm-offset-3" style="height: 150px;background-color: oldlace;">
								<img id="finger_image2" style="height: 150px;width: 100%;" src="/data/finger/a8.jpg" />
							</div>
							<div class="col-sm-8 col-sm-offset-3 btn btn-lg btn-danger btn_fingerprint" data-step="2">确认指纹</div>
						</div>
					</div>

					<div class="form-group" id="face_div">
						<div class="col-sm-7 col-sm-offset-3" hidden="hidden">
							<div class="alert alert-dismissable alert-danger">
								<strong>1.您已经录入的人脸模板，再次录入模板 提交后 将会覆盖之前的模板</strong>
								<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
							</div>
						</div>

						<div class="col-sm-4">
							<div class="col-sm-8 col-sm-offset-3" style="height: 150px;background-color: oldlace;">
								<img id="face_image1" style="height: 150px;width: 100%;" src="/data/finger/a8.jpg" />
							</div>
						</div>
						<div class="col-sm-4">
							<div class="col-sm-8 col-sm-offset-3" style="height: 150px;background-color: oldlace;">
								<img id="face_image2" style="height: 150px;width: 100%;" src="/data/finger/a8.jpg" />
							</div>
						</div>
						<div class="col-sm-4">
							<div class="col-sm-8 col-sm-offset-3" style="height: 150px;background-color: oldlace;">
								<img id="face_image3" style="height: 150px;width: 100%;" src="/data/finger/a8.jpg" />
							</div>
						</div>
					</div>
					<input type="hidden" id="fingerprint" name="fingerprint"/>
					<input type="hidden" id="face1" name="face1"/>
					<input type="hidden" id="icon1" name="icon1" />

                	<input type="hidden" value="{$model.id}" name="gym_member_id" />
                	<input type="hidden" value="0" name="gym_card_type" id="gym_card_type" />
                	<input type="hidden"  name="expiry_date" id="expiry_date" value="0" />
                	<input type="hidden" name="gym_card_name" id="gym_card_name" value="" />
                	<input type="hidden" name="time_sets" id="time_sets" value="" />
                    </form>
                </div>
                
                
                <div class="panel-footer">
	                <div class="row">
	                    <div class="col-sm-6 col-sm-offset-3">
	                        <div class="btn-toolbar">
	                            <div class="row">
			                		 <div class="form-group">
			                    		<div class="col-sm-3">
			                    			 <div class="btn-primary btn" id="form-submit">提交</div>
			                    		</div>
			                    		<div class="col-sm-3">
			                    			 <div class="btn-default btn" data-dismiss="modal">关闭</div>
			                    		</div>
			                   		 </div>
	                			</div>
	                        </div>
	                    </div>
	                </div>
            	</div>
                
            </div>
        </div>
    </div>
</div>
<script type='text/javascript' src='{$Think.GYM_VIEW_JS}gym_member/buy_card.js'></script>